import {UserCommitApi} from "@/api/user_common";

/**
 * 排班墙接口数据
 */
const ApiScheduleWallUtil = {
  /**
   * 获取医生信息
   * @param self
   * @param apiData
   * @returns {Promise<void>}
   */
  async getSchedulingWallNew(self, apiData,) {
    // 获取接口数据
    const formJson = {
      pageSize: self.apiData.scrollNumber
    };
    const {code, data} = await UserCommitApi.getSchedulingWallNew(formJson);
    return data || [];
  },

  /**
   * 系统内置接口 -- 排班墙医生信息
   * @param self
   * @param apiData
   */
  async schedulingInfoAlone(self, apiData) {
    // 获取接口数据
    // 获取 参数
    const formJson = {
      terminalId: self.deviceInfo.screenId,
    };
    const {code, data} = await UserCommitApi.getSchedulingWallNew(formJson);
    return data || [];
  },


};
export {ApiScheduleWallUtil};
